package com.streamer.app

import android.app.Application
import android.util.Log
import com.alivc.live.pusher.AlivcLiveBase
import com.alivc.live.pusher.AlivcLiveBaseListener
import com.alivc.live.pusher.AlivcLivePushConstants.AlivcLiveLicenseCheckResultCode
import com.streamer.app.utils.http.Contacts.Companion.BASE_URL
import com.youpai.yingteda_android.util.Net.initConfig
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class StreamerApplication : Application() {
    
    companion object {
        lateinit var instance: StreamerApplication


    }
    
    override fun onCreate() {
        super.onCreate()
        instance = this
        AlivcLiveBase.setListener(object : AlivcLiveBaseListener() {
            override fun onLicenceCheck(result: AlivcLiveLicenseCheckResultCode, reason: String) {
                Log.e("xxxx", "onLicenceCheck: $result, $reason")
            }
        })
        AlivcLiveBase.registerSDK()
        initConfig(BASE_URL)

    }



}